package com.tekj.cxqcb.view.Module.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.tekj.cxqcb.R;
import com.tekj.cxqcb.operation.resultBean.ApiShopServiceTypeBean;
import com.tekj.cxqcb.operation.resultBean.QueryHotWordBean;

import java.util.List;

public class HotWordsAdapter extends BaseQuickAdapter<QueryHotWordBean.DataBean, BaseViewHolder> {

    boolean isArrow=true;

    public void setArrow(boolean arrow) {
        isArrow = arrow;
    }

    public HotWordsAdapter(@Nullable List<QueryHotWordBean.DataBean> data) {
        super(R.layout.item_classification, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, QueryHotWordBean.DataBean item) {
        helper.setText(R.id.tv_name, item.getHotWord());
        helper.setGone(R.id.img_Arrow,isArrow);
    }
}
